<?php
// ---------------------------------------------------------------------------
// Website Path
	// Relative path to website 
	// ex.http://aidicms.com/aidi so aidicms_path variable must be in "/aidi/" (without quotes)
	$aidicms_path 			= "/";
	$aidicms_path_module 		= "modul/";
	$aidicms_path_themes 		= "themes/";
	$aidicms_path_data 		= "data/";
	$aidicms_path_abs		= str_replace("\\", "/", dirname(__FILE__));

// ---------------------------------------------------------------------------
// Database Configuration. MySQL v4 or above Only.
	// Database Host
	$aidicms_hostQ 			= "localhost";
	// Database User
	$aidicms_userQ 			= "root";
	// Database Password
	$aidicms_passQ 			= "nagabobo";
	// Database Name
	$aidicms_baseQ 			= "aidicms";	

//---------------------------------------------------------------------------
// Website Base Configuration
	// Website Title
	$aidicms_website_title		= "aidiCMS (Alternative Digital Content Management System)";	
	// Website author Email
	$aidicms_mail			= "dimas@aidicms.loc";

//---------------------------------------------------------------------------
// Website Default Banner Configuration
	// Default Time a banner showed up (in day)
	$aidicms_lamaIklan 		= 7;
	// Default banner maximum post
	$aidicms_jum_post_iklan		= 2;
	// Default banner Maximum size (in byte)
	// 1 KB = 1024 B
	$aidicms_max_foto 		= 25600;
	// Default banner maximum width (in px)
	$aidicms_width_file		= 300;
	// Default banner thumbnail maximum width (in px)	
	$aidicms_width_thumb		= 100;

// ---------------------------------------------------------------------------
// Website Default Paging Configuration
	// Default record for show
	$aidicms_record 		= 0;
	// Default record each page
	$aidicms_page			= 10;
	// Default number show after/before current page number
	$aidicms_next_prev 		= 4;

// ---------------------------------------------------------------------------
// Do not edit
	$aidicms_hakakses 		= explode("|",$_SESSION["modul_access"]); 
	$_SESSION["hasilX"] 		= array();
	$_SESSION["modul_access"] 	= "";
	$aidicms_limitdown 		= (@is_numeric($_GET["limitdown"])) ? (@abs(@strip_tags($_GET["limitdown"]))) : 0;
	$aidicms_baris			= 2;
	// SQL Mode
	$aidicms_important_user		= "id_user!='1'";
	$aidicms_arrpenting 		= array();
	
	$aidicms_conn = @mysql_connect($aidicms_hostQ,$aidicms_userQ,$aidicms_passQ);	
	if (!$aidicms_conn) {
		die("tidak bisa melakukan koneksi ke database mySQL. Periksa Kembali Konfigurasi Koneksi Anda");
	}
		
	$aidicms_db = @mysql_select_db($aidicms_baseQ);
	
	if (!$aidicms_db) {
		die("tidak bisa memilih database mySQL. Periksa Kembali Konfigurasi database Anda.");
	};

// Global Initialize
	define("HOSTNAME_WEB",$aidicms_hostQ);
	define("USERNAME_WEB",$aidicms_userQ);
	define("PASSWORD_WEB",$aidicms_passQ);
	define("DATABASE_WEB",$aidicms_baseQ);
	define("DIR_PATH",$aidicms_path);
	define("DIR_THEMES_PATH",$aidicms_path_themes);
	define("DIR_MODULE_PATH",$aidicms_path_module);
	define("DIR_DATA_PATH",$aidicms_path_data);
	define("DIR_ABS_PATH",$aidicms_path_abs);
	define("WEBSITE_TITLE",$aidicms_website_title);
	define("AUTHOR_MAIL",$aidicms_mail);
	define("LAMA_IKLAN",$aidicms_lamaIklan);
	define("JUMLAH_POST_IKLAN",$aidicms_jum_post_iklan);
	define("UKURAN_FILE",$aidicms_ukuran_max_foto);
	define("WIDTH_FILE",$aidicms_width_file);
	define("WIDTH_FILE_THUMB",$aidicms_width_file_thumb);
	define("NUMREC",$aidicms_record);
	define("PAGE",$aidicms_page);
	define("DEFSHOW",$aidicms_next_prev);
	define("RUSER",$aidicms_important_user);
	define("SHOWVIEW",strip_tags($_GET["showview"]));
	define("SHOW",strip_tags($_GET["show"]));
	define("LIMITDOWN",(int)$_GET["limitdown"]);
	define("ACT",strip_tags($_GET["act"]));
	define("ACT_VER",strip_tags($_GET["act_ver"]));
// ---------------------------------------------------------------------------
?>